package com.lxs.votesystem.util;
/**
 * 分页实体类
 * @author Administrator
 *
 */

import java.util.ArrayList;
import java.util.List;

public class Page {
	private Integer everyPage;//每页显示的数据条数
	private Integer currentPage;// 当前页码
	private Integer totalPage;// 总页数
	private Integer totalCount;// 总记录数
	private Integer beginIndex;// 起始下标
	private List datas = new ArrayList(); // 每页要显示的数据
	private boolean hasPrePage;// 是否有上一页
	private boolean hasNextPage; // 是否有下一页
	public Page() {
	}
	public Page(Integer everyPage, Integer currentPage, Integer totalPage, Integer totalCount, Integer beginIndex,
			 boolean hasPrePage, boolean hasNextPage) {
		super();
		this.everyPage = everyPage;
		this.currentPage = currentPage;
		this.totalPage = totalPage;
		this.totalCount = totalCount;
		this.beginIndex = beginIndex;
		this.hasPrePage = hasPrePage;
		this.hasNextPage = hasNextPage;
	}
	public Integer getEveryPage() {
		return everyPage;
	}
	public void setEveryPage(Integer everyPage) {
		this.everyPage = everyPage;
	}
	public Integer getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(Integer currentPage) {
		this.currentPage = currentPage;
	}
	public Integer getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(Integer totalPage) {
		this.totalPage = totalPage;
	}
	public Integer getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(Integer totalCount) {
		this.totalCount = totalCount;
	}
	public Integer getBeginIndex() {
		return beginIndex;
	}
	public void setBeginIndex(Integer beginIndex) {
		this.beginIndex = beginIndex;
	}
	public List getDatas() {
		return datas;
	}
	public void setDatas(List datas) {
		this.datas = datas;
	}
	public boolean isHasPrePage() {
		return hasPrePage;
	}
	public void setHasPrePage(boolean hasPrePage) {
		this.hasPrePage = hasPrePage;
	}
	public boolean isHasNextPage() {
		return hasNextPage;
	}
	public void setHasNextPage(boolean hasNextPage) {
		this.hasNextPage = hasNextPage;
	}
	@Override
	public String toString() {
		return "Page [everyPage=" + everyPage + ", currentPage=" + currentPage + ", totalPage=" + totalPage
				+ ", totalCount=" + totalCount + ", beginIndex=" + beginIndex + ", datas=" + datas + ", hasPrePage="
				+ hasPrePage + ", hasNextPage=" + hasNextPage + "]";
	}
}
